Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: How does one set a value in a link/button action, then save?
Feedback Type: Question
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Functionality
Platform: Windows XP client
Release: 8.5.1
Reproducible: Not applicable

- I need to set a field on the client side, and have the data from that field visible to a LotusScript Agent on the server side. This field can't be visible in the browser. Traditionally this has been done like this:

<input type="hidden" name="somefield" value="somevalue">

If put on a normal non-Xpage Form rendering as pass-thru HTML, this is well-nigh trivial to do, and client side JavaScript can fiddle with it as needed.

This appears to be impossible on a XPage. I found a post by Paul Hannan (Database 'IBM Lotus Notes/Domino 8.5 Forum', View '(NotesThreads)', Document 'This is a good question, and an enhancement to be addressed...') that says to set the component rendererType to javax.faces.hidden to work around this. That does not work. It does cause the field to be "hidden", in that it does not appear in the HTML at all. Nor does this work:

var fieldID="#{javascript:getClientId('fieldID')}";
alert("field is "+document.getElementById(fieldID).value);

It says that document.getElementById(fieldID) is null, meaning the browser can't see it, though fieldID is in fact set to the mangled ID for the field, so something knows that exists and can compute it's correct ID, on the server side. At the client side it's gone.

- I see no way to set a field, and have that field appear in an Agent. I must be missing something. It's inconceivable that something so fundamentally basic to web sites can't be done.

Thanks for your time...


Feedback number DGIE7Z82NC created by ~Holly Zekhipisonnivu on 12/30/2009

Status: Open
Comments:

How does one set a value in a link/... (~James Brewever... 30.Dec.09)
. . Try using css to hide the field in ... (~Delores Nonger... 30.Dec.09)
. . . . Thanks Ernie!... (~James Brewever... 31.Dec.09)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS